package Test;

public class Test01 {
    public static void main(String[] args) {
        Student s1=new Student("张三",80.0,90.0);
        s1.show();
        Teacher s2=new Teacher();
        s2.name="李四";
        s2.subject="数学";
        System.out.println(s2.name+"教的科目是"+s2.subject);
        Computer s3=new Computer("联想","英特尔",32);
        System.out.println(s3.brand+"电脑的cpu是"+s3.cpu+"内存是"+s3.memory);
    }
}
